/**banner API**/
import obj from '@/utils/request'
let {request,baseURL} = obj

//查询所有banner
export function getGoods(params) {
  return request({
    url: '/weixin/goods',
    method: 'get',
    params
  })
}
//添加
export function addGoods(data) {
  return request({
    url: '/weixin/goods',
    method: 'post',
    data
  })
}
//修改
export function modGoods(data) {
  return request({
    url: '/weixin/goods',
    method: 'put',
    data
  })
}
//删除
export function delGoods(ids) {
  return request({
    url: '/weixin/goods',
    method: 'delete',
    data:ids
  })
}
//根据id查询商品
export function getGoodsById(id) {
  return request({
    url: '/weixin/goods/'+id,
    method: 'get',
  })
}
//查询未在特价商品
export function getGoodsUnsale() {
  return request({
    url: '/weixin/goods/unsale',
    method: 'get',
  })
}





